package summer_vacation.qiuyangyang;
import java.util.Scanner;
/**
 * Created by Administrator on 2015/8/26 0026.
 */
public class Assignment_11 {
    public static void main(String[] args) {
        int m;
        Scanner in=new Scanner(System.in);
        System.out.println("请输入数据：");
        int a=in.nextInt();
        System.out.println("请输入数据：");
        int b=in.nextInt();
        System.out.println("请输入数据：");
        int c= in.nextInt();
        if (a+b>c&&a-b<c){
            m=a+b+c;
            System.out.println("三角形的周长为"+m);
        }else{
            System.out.println("不能构成三角形");
        }

    }
}
